package ualrcdg.shared.responses;

import java.util.Collection;

/**
 * Simple implementation of the "Game List Response" object. See CDG XML Specifications: Server Responses: Game List. 
 */
public class GameListResponse extends CDGResponse
{
	public static final String responseTag = "gameListResponse";

	public static final String dtdName = "fileOperations.dtd";
	
	public final Collection< GameHeader > list;
	
	/**
	 * Primary constructor
	 *
	 * @param requestId the requestId of the GameListResponse object to be created
	 * @param list the list of the GameListResponse object to be created
	 */
	public GameListResponse( String requestId, Collection< GameHeader > list )
	{
		super( requestId );
		this.list = list;
	}

	/*
	 * @see ualrcdg.shared.responses.CDGResponse#toString()
	 */
	@Override
	public String toString( )
	{
		return "GameListResponse [<" + super.toString( ) + "> list=" + list.toString( ) + "]";
	}
}
